package com.graduation.sports.config;

import android.content.Context;

import com.graduation.sports.R;
import com.graduation.sports.bean.UserInfo;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by apc_allen
 * date : 2/28/21
 * description :
 */
public class Session {
    public static UserInfo myUserInfo;
    public static Map<Integer, String> sportMap;

    public static void initSportMap(Context context){
        sportMap = new HashMap();
        sportMap.put(R.id.rl_rope_skipping, "跳绳");
        sportMap.put(R.id.rl_sit_and_reach, "坐位体前屈");
        sportMap.put(R.id.rl_sargent_jump, "原地摸高");
        sportMap.put(R.id.rl_sit_up, "仰卧起坐");
        sportMap.put(R.id.rl_standing_broad_jump, "立定跳远");
    }

    public static Map getSportMap(){ return sportMap;}

    public static UserInfo getUserInfo() {
        return myUserInfo;
    }

    public static void setUserInfo(UserInfo scUserInfo) {
        myUserInfo = scUserInfo;
    }
}
